package com.smw.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.smw.dao.UserDao;
import com.smw.entity.User;
import com.smw.service.ULoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ULoginImpl implements ULoginService {
    @Autowired
     UserDao userDao;


    @Override
    public User Login(String userName, String passWord) {
        System.out.println("进入服务层层");
        User u=userDao.login(userName,passWord);
        return u;
    }

    @Override
    public User findUserByName(String userName) {
        User u=userDao.findUserByName(userName);
        return u;
    }

    @Override
    public void addUser(User user) {
        userDao.addUser(user);
    }
}
